package com.airbat.prize.modules.base.controller.resource.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import static com.airbat.prize.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "文件资源 Excel 导出 Request VO", description = "参数和 BaseResourcePageReqVO 是一致的")
@Data
public class BaseResourceExportReqVO {

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "开始")
    private Date beginCreateTime;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "结束")
    private Date endCreateTime;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "开始")
    private Date beginEditTime;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "结束")
    private Date endEditTime;

    @ApiModelProperty(value = "")
    private Integer sort;

    @ApiModelProperty(value = "资源名称")
    private String name;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "文件大小")
    private Integer size;

    @ApiModelProperty(value = "后缀")
    private String suffixes;

    @ApiModelProperty(value = "")
    private String thumb;

    @ApiModelProperty(value = "类型 0未知 4svg文件")
    private Integer type;

}
